<template>
  <div>
    <CloudSelect
      v-model="value1"
      :options="options"
      label-in-value
      style="width: 120px"
      @change="handleChange"
    />
  </div>
</template>

<script>
export default {
  title: '6.获得选项的文本 ',
  data() {
    return {
      options: [{
        title: 'jack',
        text: 'jack',
        value: 'jack1'
      }, {
        title: 'lucy',
        text: 'lucy',
        value: 'lucy1'
      }, {
        title: 'Yiminghe',
        text: 'Yiminghe',
        value: 'Yiminghe1'
      }, {
        title: 'disabled',
        text: 'disabled',
        value: 'disabled1'
      }],
      value1: '',
    }
  },
  methods: {
    handleChange(value) {
      console.log(value); // { key: "lucy", label: "Lucy (101)" }
    },
  }
}
</script>

<style lang="scss">
</style>